package com.zsrt.oa.user.service;

import com.zsrt.oa.user.entity.UserEntity;

public interface IUserService {
	/**
	 * 添加一条记录
	 * @param entity
	 * @throws Exception
	 */
	void add(UserEntity entity) throws Exception;
	
	/**
	 * 删除一条记录
	 * @param entity
	 * @throws Exception
	 */
	void del(UserEntity entity) throws Exception;
	
	/**
	 * 修改一条记录
	 * @param search		把修改条件封装到一个对象中
	 * @param newEntity		修改后的对象信息
	 * @throws Exception
	 */
	int update(UserEntity search,UserEntity newEntity) throws Exception;
	
	/**
	 * 查询一条记录
	 * @param id
	 * @return
	 * @throws Exception
	 */
	UserEntity query(Integer id) throws Exception;
}
